package com.shuogg;

import java.io.*;

/**
 * 需要留意的是相对路径是"src/files/123.txt"而不是"/files/123.txt"
 */
public class PackJarMain {
    public final static String path = "D:/workspace java/packJar/src/files/123.txt";
    public final static String path1 = "src/files/123.txt";

    public static void main(String[] args) throws IOException {
        try {
            Reader reader = new BufferedReader(new FileReader(path1));
            char[] buffer = new char[1024];
            reader.read(buffer);
            System.out.println(buffer);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }
}
